@file:JvmName("ContextExtensions")

package com.example.mytestdemo.extensions


import android.content.Context
import android.graphics.drawable.Drawable
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import androidx.core.content.ContextCompat

fun Context.getCompatColor(@ColorRes color: Int): Int {
    return ContextCompat.getColor(this, color)
}

fun Context.getCompatDrawable(@DrawableRes res: Int): Drawable? {
    return ContextCompat.getDrawable(this, res)
}